<%@ Control Language="c#" EnableViewState="false" Inherits="LocalBoard.Web.MessageListView" CodeFile="MessageListView.ascx.cs" %>
<%@ Register TagPrefix="Prototype" Namespace="LocalBoard.ServerControls" Assembly="LocalBoard.ServerControls"%>
<Prototype:MessageTreeList id="msgList" runat="server" >
<HeaderTemplate>
	<table width="100%" border="0" cellpadding="2" cellspacing="0">
	<tr class="messageListHd" height="20" bgcolor="#F5F5F5">
	<td>&nbsp;</td><td align="right">No</td><td>&nbsp;</td><td>Subject</td><td>Id</td><td>Date Time</td><td>Hits</td>
	</tr>
</HeaderTemplate>
<ClubMessageListHeaderTemplate>
	<table width="100%" border="0" cellpadding="2" cellspacing="0">
	<tr class="messageListHd" height="20" bgcolor="#F5F5F5">
	<td>&nbsp;</td><td nowrap>Board Name</td><td>&nbsp;</td><td>Subject</td><td>Id</td><td>Date Time</td><td>Hits</td>
	</tr>
</ClubMessageListHeaderTemplate>
<MessageItemTemplate>
	<tr id="message<%#Container.Id%>" style="<%#Container.Style%>" class="messageList">
	<td width="3%"><span class="indicator" style="VISIBILITY: <%#HideOrShowIndicator(Container.Id)%>">@</span></td><td width="5%" align="right"><%#GetMessageNo(Container.MessageNo)%></td><td width="1%">&nbsp;</td><td width="51%"><%#Container.Indentation%><%#Container.ExpandSign%><a ID="messageLink" href="<%#CurrentMessageUrl(Container.Id, Container.BoardId, Container.ClubId)%>"><%#GetMessageSubject(Container.Subject, Container.Comments)%></a> <span class="indicator" style="VISIBILITY: <%#HideOrShowNewIcon(Container.Date)%>">new</span></td><td width="17%"><a href="UserInfo.aspx?userId=<%#Container.PostedByUserId%>" target="blank"><%#Container.PostedByUserId%></a></td><td width="20%"><%#Container.Date.ToString("MM/dd/yy hh:mm:ss")%></td><td width="3%" align="center"><%#Container.Hits%></td>
	</tr>
</MessageItemTemplate>
<ClubMessageListItemTemplate>
	<tr id="message<%#Container.Id%>" style="<%#Container.Style%>" class="messageList">
	<td width="3%"><span class="indicator" style="VISIBILITY: <%#HideOrShowIndicator(Container.Id)%>">@</span></td><td nowrap width="5%"><%#GetBoardName(Container.BoardId, Container.IsChild)%></td><td width="1%">&nbsp;</td><td width="51%"><%#Container.Indentation%><%#Container.ExpandSign%><a ID="messageLink" href="<%#CurrentMessageUrl(Container.Id, Container.BoardId, Container.ClubId)%>"><%#GetMessageSubject(Container.Subject, Container.Comments)%></a> <span class="indicator" style="VISIBILITY: <%#HideOrShowNewIcon(Container.Date)%>">new</span></td><td width="17%"><a href="UserInfo.aspx?userId=<%#Container.PostedByUserId%>" target="blank"><%#Container.PostedByUserId%></a></td><td width="20%"><%#Container.Date.ToString("MM/dd/yy hh:mm:ss")%></td><td width="3%" align="center"><%#Container.Hits%></td>
	</tr>
</ClubMessageListItemTemplate>
<FooterTemplate>
	</table>
</FooterTemplate>
<NoDataMessageTemplate>
	<tr><td><b>No message posted yet.</b></td></tr>
</NoDataMessageTemplate>
<HiddenStyleTemplate>VISIBILITY: hidden;POSITION: absolute</HiddenStyleTemplate>
<ExpandSignTemplate><a href="javascript:ToggleReply(message{0})"><img id="image_message{0}" src="images/collapse.gif" border="0"></a></ExpandSignTemplate>
<LeafSignTemplate><img id="image_message{0}" src="images/leaf.gif" border="0"></LeafSignTemplate>
<IndentationTemplate><img src="images/space.gif" border="0" width="10" height="1"></IndentationTemplate>
</Prototype:MessageTreeList>
